package com.lagou.feign;

import com.lagou.commom.pojo.Products;
import org.springframework.stereotype.Component;

@Component
public class FeignFallBack implements ProductFeign {
    @Override
    public Products getProduct(Integer id) {
        Products products = new Products();
        products.setFlag("空对象");
        return products;
    }

    @Override
    public String getPort() {

        return "-1";
    }
}
